#define lowPassConst 1 //PPM input lowpass filter constant increase for more filtering
#define jitterTol 1 //Changes in PPM input below this is ignored to reduce servo buzzing

void inputFilter() {
  for (byte i = 0; i < CHANNELS; i++ ){ 

    txdata.AxisOut[i] = (txdata.AxisOut[i]-AxisOld[i])/lowPassConst+AxisOld[i];

    if (abs(txdata.AxisOut[i] - AxisOld[i]) > jitterTol) {
      AxisOld[i] =  txdata.AxisOut[i];
    }
    else {
      txdata.AxisOut[i] = AxisOld[i];
    }
  }
}

